package com.diankangwo.sys.service;

import com.diankangwo.sys.entity.SysUserEntity;
import com.diankangwo.sys.entity.SysUserTokenEntity;
import org.springframework.stereotype.Repository;

import java.util.Set;

/** shiro相关接口
 * Created by wuye on 2017/9/5.
 */
public interface ShiroService {

    /**
     * 获取用户权限列表
     */
    Set<String> getUserPermissions(long userId);

    SysUserTokenEntity queryByToken(String token);

    /**
     * 根据用户ID，查询用户
     * @param userId
     */
    SysUserEntity queryUser(Long userId);
}
